﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TextToHTMLExtensionInterfaces
{
    /// <summary>
    /// Extend this object to add a new parser that recognizes something
    /// new in the text, which the IHTMLConverter plug-ins can then translate
    /// into something else.
    /// </summary>
    public interface IParseText
    {
        TextRun[] FindTextToReplace(string text);
    }

    /// <summary>
    /// The run of text that has been identified
    /// </summary>
    public class TextRun
    {
        public int Start { get; set; }
        public int Length { get; set; }
        public object whatItIs { get; set; }
    }
}
